package com.excel.dao;

import java.util.List;

import com.excel.Utils;
import com.excel.student.Student;

public class StudentDao {
	public void addStudent(Student student) {
		Utils.studentMap.put(String.valueOf(student.getId()), student);
	}

	public void deleteStudent(int id) {
		Utils.studentMap.remove(String.valueOf(id));
	}

	public void updateStudent(Student student) {
		Utils.studentMap.put(String.valueOf(student.getId()), student);
	}

	public Student findById(int id) {
		return Utils.studentMap.get(String.valueOf(id));
	}

	public List<Student> findAll() {
		return null;
	} 
}
